home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19980424-19980901
/
000233_news@newsmaster….columbia.edu _Fri Jun 26 10:43:47 1998.msg
< prev
next >
Wrap
Internet Message Format
|
1998-08-31
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA22614
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 26 Jun 1998 10:43:46 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA29261
for kermit.misc@watsun; Fri, 26 Jun 1998 10:43:46 -0400 (EDT)
Path: news.columbia.edu!panix!news-peer.gip.net!news.gsl.net!gip.net!howland.erols.net!news-feed1.tiac.net!posterchild2!news@tiac.net
From: "Art L." <art1958@yahoo.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Get port of previous failed set line command
Date: Fri, 26 Jun 1998 10:41:08 -0400
Organization: The Internet Access Company, Inc.
Lines: 18
Message-ID: <3593B304.716C@yahoo.com>
NNTP-Posting-Host: ccraft.tiac.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0Gold (Win95; I)
Xref: news.columbia.edu comp.protocols.kermit.misc:8924
I have a kermit script which then "takes" from a file called kermit.dat.
kermit.dat contains "set line /dev/tty1A" (or what ever the local modem
port may be). If the modem is not available the parent script is aware
of this because \v(line) equals /dev/tty.
What I would like to do is add some code to the parent script to keep
attempting to set line /dev/ttysomething every 10 seconds until it is
available. However the parent script does not know what the
ttysomething should be. There does not seem to be a built in variable
which contains this information.
Currently I have my take kermit.dat command in a loop from which I
break out of if \v(line) is something other than /dev/tty. What I
really want to do is to read the lock file (ie /usr/spool/uucp/LCK..1a)
to get the process ID (and therefore the program and user) of the
locking process.
I am using CKermit 6.1.192 and 5A(190) under SCO UNIX and XENIX